<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.fick.util.*" %>
<%@ page import="com.fick.hibernate.model.*"%>
<%@ page import="com.fick.hibernate.dao.*" %>

<%
   String userName = General.convertISOToUTF(request.getParameter("userName"));
   String userPass = request.getParameter("userPass");
   Userer userer = new Userer();
   UsererDAO userDao = new UsererDAO();
   try{
     userer = (Userer)userDao.findAll().get(0);
     }catch(Exception e){
       response.sendRedirect("error.jsp");
     }
   userer.setUserName(userName);
   userer.setUserPass(userPass);
   userDao.update(userer);
   response.sendRedirect("manaUserer.jsp?message=1");
 %>
